package com.zy.cat.entity.app;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.springframework.data.annotation.Id;

import org.springframework.data.mongodb.core.mapping.Document;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * 
 * @info 9趣猫APP,PV菜单列表
 * @author Link
 * @date 2019-10-30 08:56
 */
@Data
@RequiredArgsConstructor
@ApiModel("9趣猫APP,PV菜单列表")
@Document
public class CatAppPvMenus implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2782816085493333451L;

 
	@Id
	@ApiModelProperty(value = "菜单ID", example = "")
	private String mid;

	@ApiModelProperty(value = "菜单名称", example = "")
	private String mname;

	@ApiModelProperty(value = "子菜单列表", example = "")
	List<CatAppPvMenus> childs = new ArrayList<CatAppPvMenus>();

	public CatAppPvMenus(String mid, String mname) {
		super();
		this.mid = mid;
		this.mname = mname;
	}

	public CatAppPvMenus(String mid, String mname, List<CatAppPvMenus> childs) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.childs = childs;
	}

//	public CatAppPvMenus(String mid, String mname, String cmid, String cmname ) {
//		super();
//		this.mid = mid;
//		this.mname = mname;
//		this.cmid = cmid;
//		this.cmname = cmname;
//	}
//	
//	public CatAppPvMenus(String mid, String mname, String cmid, String cmname, List<CatAppPvMenus> childs) {
//		super();
//		this.mid = mid;
//		this.mname = mname;
//		this.cmid = cmid;
//		this.cmname = cmname;
//		this.childs = childs;
//	}
}
